package com.hzw.saas.api.rbac.query;

import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zzl
 * @since 08/30/2021
 */
@Data
@ApiModel("新增角色参数")
public class RoleAddQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色名称", required = true)
    @NotBlank(message = "角色名称不可为空")
    private String name;

    @ApiModelProperty(value = "所属系统, 1-后台管理用户, 2-云平台用户")
    @NotNull(message = "所属系统不可为空")
    private Integer sys;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "权限ID列表")
    private List<String> permIds;

}
